package com.hr.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName Employee
 * @Description TODO
 * @Author hkp
 **/


public class Employee {
    private int id;
    private String eId;
    private String eName;
    private String eSex;
    private String eTel;
    private String eDepartment;
    private String ePosition;
    private String ePostState;//当前员工状态 离职/在职

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date eHireDate;
    private Date eLeaveDate;

    public Employee() {
    }

    public Employee(String eId,String eName, String eSex, String eTel, String eDepartment, String ePosition, String ePostState, Date eHireDate, Date eLeaveDate) {
        this.eId = eId;
        this.eName = eName;
        this.eSex = eSex;
        this.eTel = eTel;
        this.eDepartment = eDepartment;
        this.ePosition = ePosition;
        this.ePostState = ePostState;
        this.eHireDate = eHireDate;
        this.eLeaveDate = eLeaveDate;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String geteId() {
        return eId;
    }

    public void seteId(String eId) {
        this.eId = eId;
    }

    public String geteName() {
        return eName;
    }

    public void seteName(String eName) {
        this.eName = eName;
    }

    public String geteSex() {
        return eSex;
    }

    public void seteSex(String eSex) {
        this.eSex = eSex;
    }

    public String geteTel() {
        return eTel;
    }

    public void seteTel(String eTel) {
        this.eTel = eTel;
    }

    public String geteDepartment() {
        return eDepartment;
    }

    public void seteDepartment(String eDepartment) {
        this.eDepartment = eDepartment;
    }

    public String getePosition() {
        return ePosition;
    }

    public void setePosition(String ePosition) {
        this.ePosition = ePosition;
    }

    public String getePostState() {
        return ePostState;
    }

    public void setePostState(String ePostState) {
        this.ePostState = ePostState;
    }

    public Date geteHireDate() {
        return eHireDate;
    }

    public void seteHireDate(Date eHireDate) {
        this.eHireDate = eHireDate;
    }

    public Date geteLeaveDate() {
        return eLeaveDate;
    }

    public void seteLeaveDate(Date eLeaveDate) {
        this.eLeaveDate = eLeaveDate;
    }
}
